import Vue from "vue";
import Vuex from "vuex";
import user from "./modules/user";
import capital from "./modules/capital";
import VuexPersistence from 'vuex-persist'
const vuexLocal = new VuexPersistence({
  storage: window.localStorage
})

Vue.use(Vuex);

const store = new Vuex.Store({
	plugins: [vuexLocal.plugin],
	modules: {
		user,
		capital,
	}
});

export default store;
